using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._CrimeAnalysisandSafetyTools
{
    /// <summary>
    /// <para>Feature To 3D By Time</para>
    /// <para>Creates a 3D feature class using date values from
    /// input features.</para>
    /// <para>使用日期值创建 3D 要素类
    /// 输入功能。</para>
    /// </summary>    
    [DisplayName("Feature To 3D By Time")]
    public class FeatureTo3DByTime : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public FeatureTo3DByTime()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_features">
        /// <para>Input Features</para>
        /// <para>The features used to create 3D features.</para>
        /// <para>用于创建 3D 要素的特征。</para>
        /// </param>
        /// <param name="_out_feature_class">
        /// <para>Output Feature Class</para>
        /// <para>The output z-enabled feature class.</para>
        /// <para>输出启用 z 的要素类。</para>
        /// </param>
        /// <param name="_date_field">
        /// <para>Date Field</para>
        /// <para>A date field from the input that will be used to calculate the extrusion of the feature..</para>
        /// <para>输入中的日期字段，将用于计算特征的拉伸。</para>
        /// </param>
        public FeatureTo3DByTime(object _in_features, object _out_feature_class, object _date_field)
        {
            this._in_features = _in_features;
            this._out_feature_class = _out_feature_class;
            this._date_field = _date_field;
        }
        public override string ToolboxName => "Crime Analysis and Safety Tools";

        public override string ToolName => "Feature To 3D By Time";

        public override string CallName => "ca.FeatureTo3DByTime";

        public override List<string> AcceptEnvironments => ["XYDomain", "XYResolution", "XYTolerance", "ZDomain", "ZResolution", "ZTolerance", "configKeyword", "extent", "geographicTransformations", "outputCoordinateSystem", "outputZValue", "workspace"];

        public override object[] ParameterInfo => [_in_features, _out_feature_class, _date_field, _time_z_unit, _base_z, _base_date];

        /// <summary>
        /// <para>Input Features</para>
        /// <para>The features used to create 3D features.</para>
        /// <para>用于创建 3D 要素的特征。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Features")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_features { get; set; }


        /// <summary>
        /// <para>Output Feature Class</para>
        /// <para>The output z-enabled feature class.</para>
        /// <para>输出启用 z 的要素类。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Feature Class")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_feature_class { get; set; }


        /// <summary>
        /// <para>Date Field</para>
        /// <para>A date field from the input that will be used to calculate the extrusion of the feature..</para>
        /// <para>输入中的日期字段，将用于计算特征的拉伸。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Date Field")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _date_field { get; set; }


        /// <summary>
        /// <para>Time Z Interval and Unit</para>
        /// <para><xdoc>
        ///   <para>The time interval and unit that will be represented by one vertical linear unit in the output feature class.</para>
        ///   <para>For example, if the output feature class has a vertical coordinate system based in meters and this parameter has a value of 1 second, the resulting feature class will have features extruded in which 1 meter of elevation is equal to 1 second of time.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>输出要素类中将由一个垂直线性单位表示的时间间隔和单位。</para>
        ///   <para>例如，如果输出要素类具有基于米的垂直坐标系，并且此参数的值为 1 秒，则生成的要素类将具有拉伸的要素，其中 1 米高程等于 1 秒的时间。</para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Time Z Interval and Unit")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _time_z_unit { get; set; } = null;


        /// <summary>
        /// <para>Base z-value</para>
        /// <para>The base z-value from which the output feature will start the extrusion.</para>
        /// <para>输出特征将从中开始拉伸的基本 z 值。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Base z-value")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public long _base_z { get; set; } = 0;


        /// <summary>
        /// <para>Base Date and Time</para>
        /// <para><xdoc>
        ///   <para>The date and time on which the time extrusion will be based.</para>
        ///   <para>When no value is specified, the minimum date value of the input will be used.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>时间拉伸所依据的日期和时间。</para>
        ///   <para>如果未指定任何值，则将使用输入的最小日期值。</para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Base Date and Time")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _base_date { get; set; } = null;


        public FeatureTo3DByTime SetEnv(object XYDomain = null, object XYResolution = null, object XYTolerance = null, object ZDomain = null, object ZResolution = null, object ZTolerance = null, object configKeyword = null, object extent = null, object geographicTransformations = null, object outputCoordinateSystem = null, object outputZValue = null, object workspace = null)
        {
            base.SetEnv(XYDomain: XYDomain, XYResolution: XYResolution, XYTolerance: XYTolerance, ZDomain: ZDomain, ZResolution: ZResolution, ZTolerance: ZTolerance, configKeyword: configKeyword, extent: extent, geographicTransformations: geographicTransformations, outputCoordinateSystem: outputCoordinateSystem, outputZValue: outputZValue, workspace: workspace);
            return this;
        }

    }

}